import java.util.Random;
public class Randomm {
    public static void Demo1(){
        Random r = new Random();
        int nextInt = r.nextInt();
        Random r1 = new Random(10);
        int nextInt2 = r1.nextInt();
        System.out.println("nextInt:"+nextInt);
        System.out.println("nextInt2:"+nextInt2);
    }

    public static void main(String[] args) {
        Demo1();
        Random randomNumbers=new Random();
        for(int i=1;i<=10;++i){
            System.out.println(randomNumbers.nextInt(6));
        }
    }
}
